﻿using NewAI.Game;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewAI.FSM.TankFSM
{
    class TankRequireAssistanceState:State<TankAI>
    {
        public override void Enter(TankAI entity)
        {
            PubliceMessage.RequireAssistanceToOtherTanks.Call(this, new FSMEventEventArg("老哥们，搭把手！"));
            BulletType bulletType;
            if (entity.DefaultAskForAssistanceDirection.UseSuperBullet)
                bulletType = BulletType.Super;
            else
                bulletType = BulletType.Normal;
            entity.SendActionObj(entity.DefaultAskForAssistanceDirection.Fire, entity.DefaultAskForAssistanceDirection.Move, bulletType);
        }
    }
}
